.class public abstract Lcom/philzhu/www/framework/impl/AndroidGame;
.super Landroid/app/Activity;
.source "AndroidGame.java"

# interfaces
.implements Lcom/philzhu/www/framework/Game;


# static fields
.field public static final GAME_FIELD_HEIGHT:I = 0x1e0

.field public static final GAME_FIELD_WIDTH:I = 0x320


# instance fields
.field private adView:Lcom/adview/AdViewLayout;

.field audio:Lcom/philzhu/www/framework/Audio;

.field private dialog:Landroid/app/Dialog;

.field fileIO:Lcom/philzhu/www/framework/FileIO;

.field graphics:Lcom/philzhu/www/framework/Graphics;

.field private handler:Landroid/os/Handler;

.field input:Lcom/philzhu/www/framework/Input;

.field private lp:Landroid/widget/RelativeLayout$LayoutParams;

.field renderView:Lcom/philzhu/www/framework/impl/AndroidFastRenderView;

.field screen:Lcom/philzhu/www/framework/Screen;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 28
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/philzhu/www/framework/impl/AndroidGame;)V
    .locals 0
    .parameter

    .prologue
    .line 152
    invoke-direct {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->showNoPermissionDialog()V

    return-void
.end method

.method static synthetic access$1(Lcom/philzhu/www/framework/impl/AndroidGame;)Landroid/widget/RelativeLayout$LayoutParams;
    .locals 1
    .parameter

    .prologue
    .line 40
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->lp:Landroid/widget/RelativeLayout$LayoutParams;

    return-object v0
.end method

.method static synthetic access$2(Lcom/philzhu/www/framework/impl/AndroidGame;)Lcom/adview/AdViewLayout;
    .locals 1
    .parameter

    .prologue
    .line 39
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->adView:Lcom/adview/AdViewLayout;

    return-object v0
.end method

.method static synthetic access$3(Lcom/philzhu/www/framework/impl/AndroidGame;)V
    .locals 0
    .parameter

    .prologue
    .line 169
    invoke-direct {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->showNoGold()V

    return-void
.end method

.method static synthetic access$4(Lcom/philzhu/www/framework/impl/AndroidGame;)Landroid/app/Dialog;
    .locals 1
    .parameter

    .prologue
    .line 38
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->dialog:Landroid/app/Dialog;

    return-object v0
.end method

.method private showNoGold()V
    .locals 5

    .prologue
    .line 171
    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f04003d

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 172
    .local v1, title:Ljava/lang/String;
    const v3, 0x7f04003f

    invoke-virtual {p0, v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 173
    .local v0, message:Ljava/lang/String;
    const v3, 0x7f040040

    invoke-virtual {p0, v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 174
    .local v2, yesStr:Ljava/lang/String;
    new-instance v3, Landroid/app/AlertDialog$Builder;

    invoke-direct {v3, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v4, 0x7f020015

    invoke-virtual {v3, v4}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    invoke-virtual {v3, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    .line 175
    new-instance v4, Lcom/philzhu/www/framework/impl/AndroidGame$3;

    invoke-direct {v4, p0}, Lcom/philzhu/www/framework/impl/AndroidGame$3;-><init>(Lcom/philzhu/www/framework/impl/AndroidGame;)V

    .line 174
    invoke-virtual {v3, v2, v4}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    .line 182
    invoke-virtual {v3}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v3

    .line 174
    iput-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->dialog:Landroid/app/Dialog;

    .line 183
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->dialog:Landroid/app/Dialog;

    invoke-virtual {v3}, Landroid/app/Dialog;->show()V

    .line 184
    return-void
.end method

.method private showNoPermissionDialog()V
    .locals 5

    .prologue
    .line 154
    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f04003d

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 155
    .local v1, title:Ljava/lang/String;
    const v3, 0x7f04003e

    invoke-virtual {p0, v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 156
    .local v0, message:Ljava/lang/String;
    const v3, 0x7f040040

    invoke-virtual {p0, v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 157
    .local v2, yesStr:Ljava/lang/String;
    new-instance v3, Landroid/app/AlertDialog$Builder;

    invoke-direct {v3, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v4, 0x7f020015

    invoke-virtual {v3, v4}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    invoke-virtual {v3, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    .line 158
    new-instance v4, Lcom/philzhu/www/framework/impl/AndroidGame$2;

    invoke-direct {v4, p0}, Lcom/philzhu/www/framework/impl/AndroidGame$2;-><init>(Lcom/philzhu/www/framework/impl/AndroidGame;)V

    .line 157
    invoke-virtual {v3, v2, v4}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    .line 165
    invoke-virtual {v3}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v3

    .line 157
    iput-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->dialog:Landroid/app/Dialog;

    .line 166
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->dialog:Landroid/app/Dialog;

    invoke-virtual {v3}, Landroid/app/Dialog;->show()V

    .line 167
    return-void
.end method


# virtual methods
.method public getAudio()Lcom/philzhu/www/framework/Audio;
    .locals 1

    .prologue
    .line 220
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->audio:Lcom/philzhu/www/framework/Audio;

    return-object v0
.end method

.method public getCurrentScreen()Lcom/philzhu/www/framework/Screen;
    .locals 1

    .prologue
    .line 237
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->screen:Lcom/philzhu/www/framework/Screen;

    return-object v0
.end method

.method public getFileIO()Lcom/philzhu/www/framework/FileIO;
    .locals 1

    .prologue
    .line 210
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->fileIO:Lcom/philzhu/www/framework/FileIO;

    return-object v0
.end method

.method public getGraphics()Lcom/philzhu/www/framework/Graphics;
    .locals 1

    .prologue
    .line 215
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->graphics:Lcom/philzhu/www/framework/Graphics;

    return-object v0
.end method

.method public getInput()Lcom/philzhu/www/framework/Input;
    .locals 1

    .prologue
    .line 205
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->input:Lcom/philzhu/www/framework/Input;

    return-object v0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 10
    .parameter "savedInstanceState"

    .prologue
    const/16 v8, 0x400

    const/16 v7, 0x80

    const/high16 v9, 0x3f80

    .line 44
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 46
    const/4 v6, 0x1

    invoke-virtual {p0, v6}, Lcom/philzhu/www/framework/impl/AndroidGame;->requestWindowFeature(I)Z

    .line 47
    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->getWindow()Landroid/view/Window;

    move-result-object v6

    invoke-virtual {v6, v7, v7}, Landroid/view/Window;->setFlags(II)V

    .line 49
    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->getWindow()Landroid/view/Window;

    move-result-object v6

    invoke-virtual {v6, v8, v8}, Landroid/view/Window;->setFlags(II)V

    .line 52
    invoke-static {p0}, Lcom/philzhu/www/ads/AdsManager;->init(Landroid/content/Context;)V

    .line 54
    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getWidth()I

    move-result v3

    .line 55
    .local v3, frameBufferWidth:I
    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getHeight()I

    move-result v2

    .line 57
    .local v2, frameBufferHeight:I
    sget-object v6, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;

    .line 56
    invoke-static {v3, v2, v6}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 58
    .local v1, frameBuffer:Landroid/graphics/Bitmap;
    new-instance v6, Landroid/os/Handler;

    new-instance v7, Lcom/philzhu/www/framework/impl/AndroidGame$1;

    invoke-direct {v7, p0}, Lcom/philzhu/www/framework/impl/AndroidGame$1;-><init>(Lcom/philzhu/www/framework/impl/AndroidGame;)V

    invoke-direct {v6, v7}, Landroid/os/Handler;-><init>(Landroid/os/Handler$Callback;)V

    iput-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->handler:Landroid/os/Handler;

    .line 98
    int-to-float v6, v3

    .line 99
    const/high16 v7, 0x4448

    .line 98
    div-float v4, v6, v7

    .line 100
    .local v4, scaleX:F
    int-to-float v6, v2

    .line 101
    const/high16 v7, 0x43f0

    .line 100
    div-float v5, v6, v7

    .line 103
    .local v5, scaleY:F
    move v0, v2

    .line 105
    .local v0, adWidth:I
    const v6, 0x7f030002

    invoke-virtual {p0, v6}, Lcom/philzhu/www/framework/impl/AndroidGame;->setContentView(I)V

    .line 106
    const v6, 0x7f080005

    invoke-virtual {p0, v6}, Lcom/philzhu/www/framework/impl/AndroidGame;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lcom/philzhu/www/framework/impl/AndroidFastRenderView;

    iput-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->renderView:Lcom/philzhu/www/framework/impl/AndroidFastRenderView;

    .line 107
    iget-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->renderView:Lcom/philzhu/www/framework/impl/AndroidFastRenderView;

    invoke-virtual {v6, p0, v1}, Lcom/philzhu/www/framework/impl/AndroidFastRenderView;->initView(Lcom/philzhu/www/framework/impl/AndroidGame;Landroid/graphics/Bitmap;)V

    .line 108
    const v6, 0x7f080006

    invoke-virtual {p0, v6}, Lcom/philzhu/www/framework/impl/AndroidGame;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lcom/adview/AdViewLayout;

    iput-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->adView:Lcom/adview/AdViewLayout;

    .line 109
    new-instance v6, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v7, -0x2

    invoke-direct {v6, v0, v7}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->lp:Landroid/widget/RelativeLayout$LayoutParams;

    .line 110
    iget-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->lp:Landroid/widget/RelativeLayout$LayoutParams;

    const/16 v7, 0xc

    invoke-virtual {v6, v7}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 111
    iget-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->lp:Landroid/widget/RelativeLayout$LayoutParams;

    const/16 v7, -0x3e8

    iput v7, v6, Landroid/widget/RelativeLayout$LayoutParams;->bottomMargin:I

    .line 112
    iget-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->adView:Lcom/adview/AdViewLayout;

    iget-object v7, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->lp:Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {v6, v7}, Lcom/adview/AdViewLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 113
    new-instance v6, Lcom/philzhu/www/framework/impl/AndroidGraphics;

    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v7

    invoke-direct {v6, v7, v1, v4, v5}, Lcom/philzhu/www/framework/impl/AndroidGraphics;-><init>(Landroid/content/res/AssetManager;Landroid/graphics/Bitmap;FF)V

    iput-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->graphics:Lcom/philzhu/www/framework/Graphics;

    .line 114
    new-instance v6, Lcom/philzhu/www/framework/impl/AndroidFileIO;

    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v7

    invoke-direct {v6, v7}, Lcom/philzhu/www/framework/impl/AndroidFileIO;-><init>(Landroid/content/res/AssetManager;)V

    iput-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->fileIO:Lcom/philzhu/www/framework/FileIO;

    .line 115
    new-instance v6, Lcom/philzhu/www/framework/impl/AndroidAudio;

    invoke-direct {v6, p0}, Lcom/philzhu/www/framework/impl/AndroidAudio;-><init>(Landroid/app/Activity;)V

    iput-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->audio:Lcom/philzhu/www/framework/Audio;

    .line 116
    new-instance v6, Lcom/philzhu/www/framework/impl/AndroidInput;

    iget-object v7, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->renderView:Lcom/philzhu/www/framework/impl/AndroidFastRenderView;

    div-float v8, v9, v4

    div-float/2addr v9, v5

    invoke-direct {v6, p0, v7, v8, v9}, Lcom/philzhu/www/framework/impl/AndroidInput;-><init>(Landroid/content/Context;Landroid/view/View;FF)V

    iput-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->input:Lcom/philzhu/www/framework/Input;

    .line 117
    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->getStartScreen()Lcom/philzhu/www/framework/Screen;

    move-result-object v6

    iput-object v6, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->screen:Lcom/philzhu/www/framework/Screen;

    .line 118
    return-void
.end method

.method public onPause()V
    .locals 1

    .prologue
    .line 195
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 196
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->renderView:Lcom/philzhu/www/framework/impl/AndroidFastRenderView;

    invoke-virtual {v0}, Lcom/philzhu/www/framework/impl/AndroidFastRenderView;->pause()V

    .line 197
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->screen:Lcom/philzhu/www/framework/Screen;

    invoke-virtual {v0}, Lcom/philzhu/www/framework/Screen;->pause()V

    .line 199
    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->isFinishing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 200
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->screen:Lcom/philzhu/www/framework/Screen;

    invoke-virtual {v0}, Lcom/philzhu/www/framework/Screen;->dispose()V

    .line 201
    :cond_0
    return-void
.end method

.method public onResume()V
    .locals 1

    .prologue
    .line 188
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 189
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->screen:Lcom/philzhu/www/framework/Screen;

    invoke-virtual {v0}, Lcom/philzhu/www/framework/Screen;->resume()V

    .line 190
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->renderView:Lcom/philzhu/www/framework/impl/AndroidFastRenderView;

    invoke-virtual {v0}, Lcom/philzhu/www/framework/impl/AndroidFastRenderView;->resume()V

    .line 191
    return-void
.end method

.method public setScreen(Lcom/philzhu/www/framework/Screen;)V
    .locals 2
    .parameter "screen"

    .prologue
    .line 225
    if-nez p1, :cond_0

    .line 226
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Screen must not be null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 228
    :cond_0
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->screen:Lcom/philzhu/www/framework/Screen;

    invoke-virtual {v0}, Lcom/philzhu/www/framework/Screen;->pause()V

    .line 229
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->screen:Lcom/philzhu/www/framework/Screen;

    invoke-virtual {v0}, Lcom/philzhu/www/framework/Screen;->dispose()V

    .line 230
    invoke-virtual {p1}, Lcom/philzhu/www/framework/Screen;->resume()V

    .line 231
    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Lcom/philzhu/www/framework/Screen;->update(F)V

    .line 232
    iput-object p1, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->screen:Lcom/philzhu/www/framework/Screen;

    .line 233
    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->showAd()V

    .line 234
    return-void
.end method

.method public showAd()V
    .locals 2

    .prologue
    .line 147
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 148
    .local v0, msg:Landroid/os/Message;
    const/4 v1, 0x3

    iput v1, v0, Landroid/os/Message;->what:I

    .line 149
    iget-object v1, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->handler:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 150
    return-void
.end method

.method public showDialog()V
    .locals 2

    .prologue
    .line 133
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 134
    .local v0, msg:Landroid/os/Message;
    const/4 v1, 0x2

    iput v1, v0, Landroid/os/Message;->what:I

    .line 135
    iget-object v1, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->handler:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 136
    return-void
.end method

.method public showNoGoldDialog()V
    .locals 2

    .prologue
    .line 140
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 141
    .local v0, msg:Landroid/os/Message;
    const/4 v1, 0x4

    iput v1, v0, Landroid/os/Message;->what:I

    .line 142
    iget-object v1, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->handler:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 143
    return-void
.end method

.method public shwoToast(Ljava/lang/String;)V
    .locals 3
    .parameter "text"

    .prologue
    .line 122
    iget-object v2, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->handler:Landroid/os/Handler;

    invoke-virtual {v2}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v1

    .line 123
    .local v1, msg:Landroid/os/Message;
    const/4 v2, 0x1

    iput v2, v1, Landroid/os/Message;->what:I

    .line 124
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 125
    .local v0, b:Landroid/os/Bundle;
    const-string v2, "text"

    invoke-virtual {v0, v2, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 127
    invoke-virtual {v1, v0}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 128
    iget-object v2, p0, Lcom/philzhu/www/framework/impl/AndroidGame;->handler:Landroid/os/Handler;

    invoke-virtual {v2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 129
    return-void
.end method
